/*
 * SimpleModal Basic Modal Dialog
 * http://www.ericmmartin.com/projects/simplemodal/
 * http://code.google.com/p/simplemodal/
 *
 * Copyright (c) 2010 Eric Martin - http://ericmmartin.com
 *
 * Licensed under the MIT license:
 *   http://www.opensource.org/licenses/mit-license.php
 *
 * Revision: $Id: basic.js 243 2010-03-15 14:23:14Z emartin24 $
 *
 */
jQuery(function ($) {
    $('#basic-modal .basic').click(function (e) {
        $('#basic-modal-content').modal({onClose: function (dialog) {
                                        $.modal.close(); // must call this!
        }} );

      return false;
	});

    $('#basic-modal-advanced-search .basic').click(
        function (e) {
            $('#basic-modal-content-advanced-search').modal(
                {onClose: function (dialog){$.modal.close();}, autoResize: true, containerId: 'resizable'}
            );
            return false;
        }
    );
    $('#basic-modal-customer_selector .basic').click(
        function (e) {
            $('#basic-modal-content-customer_selector').modal(
                {onClose: function (dialog){$.modal.close();}, maxHeight: 630, maxWidth: 640}
            );
            return false;
        }
    );

    $('#basic-modal-profile_selector .basic').click(
        function (e) {
            $('#basic-modal-content-profile_selector').modal(
                {onClose: function (dialog){$.modal.close();}, maxHeight :630, maxWidth: 410}
            );
            return false;
        }
    );

    $('#basic-modal-contact_selector .basic').click(
        function (e) {
            $('#basic-modal-content-contact_selector').modal(
                {onClose: function (dialog){$.modal.close();}, maxHeight :630, maxWidth: 515}
            );
            return false;
        }
    );

    $('#basic-modal-user_selector .basic').click(
        function (e) {
            $('#basic-modal-content-user_selector').modal(
                {onClose: function (dialog){$.modal.close();}, maxHeight :630, maxWidth: 410}
            );
            return false;
        }
    );

    $('#basic-modal-material_selector .basic').click(
        function (e) {
            $('#basic-modal-content-material_selector').modal(
                {onClose: function (dialog){$.modal.close();}}
            );
            return false;
        }
    );
}
);
